FROM golang:alpine3.19
ENV GOPROXY=https://goproxy.cn,direct
ADD . /go/src/app
WORKDIR /go/src/app
RUN  go mod tidy
RUN  go build -v -o app
CMD ["./app"]